package com.example.springbootsenior.RedisCache.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootsenior.RedisCache.entry.po.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author 86150
 * @description 针对表【employee】的数据库操作Mapper
 * @createDate 2021-11-18 21:23:00
 * @Entity generator.domain.Employee
 */
@Repository
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    @Select("select * from employee where last_name=#{lastName}")
    Employee getEmpByLastName(String lastName);
}




